-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expose Last Index Request Timestamp in Cat Indices API #18405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Last Index Request Timestamp in Cat Indices API #18405
Conversation
4cffd55
to
3bfecce
Compare
❌ Gradle check result for 3bfecce: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/stats/IndexStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/stats/ShardStats.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/indices/stats/IndexStatsIT.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/indices/stats/IndexStatsIT.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 7678134: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18405 +/- ##
============================================
+ Coverage 72.55% 72.70% +0.14%
- Complexity 68185 68271 +86
============================================
Files 5555 5556 +1
Lines 313857 313887 +30
Branches 45522 45527 +5
============================================
+ Hits 227707 228199 +492
+ Misses 67616 67110 -506
- Partials 18534 18578 +44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2fc1691
to
eff3086
Compare
❌ Gradle check result for c0184ec: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❕ Gradle check result for 8760b58: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
@andrross - Made the changes suggested. Please kindly take a look at it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is looking good now. @andrross, any more feedback from your end?
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
8760b58
to
26d366b
Compare
Signed-off-by: Andrew Ross <[email protected]>
Looks good to me, @msfroh. I fixed up the changelog so lets merge this when the tests pass again. |
Signed-off-by: Andrew Ross <[email protected]>
❕ Gradle check result for 874981e: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Description
This PR enhances the _cat/indices API by adding two new columns to report the timestamp of the last index request processed for each index:
This mirrors the existing approach for creation.date and creation.date.string, providing both a machine-friendly and a human-friendly representation.
Details
GET _cat/indices?v&h=index,last_index_request_timestamp,last_index_request_timestamp.string
Manual Testing
Related Issues
Resolves #10766
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.